{menuList}
<br>
<table width="69%" border=0 cellpadding=0 cellspacing=0>
<tr><td width="62%">
<span id="hktime"></span>，<span id="countdownstr"></span>
</td><td width="22%">
</td></tr>
</table>

<table cellSpacing="1" cellPadding="3" width="990" border="0" bgcolor="#6A99A6">
  <tr bgcolor="#C0D6EB">
    <td width="100%" align="center"><b>三全中</b></td>
      <table id="table15" cellSpacing="1" cellPadding="0" border="0" width="990">
      <tr>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
      <td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
      <td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
      <td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
      <td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
      <td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
  		</tr>
      {rate_list}
    </table>
    </tr>
  <br>
<tr>
<td width="57%">快选 
<span id=btn011 class=btnchoice onclick="chsbtn(11)">红</span>
<span id=btn012 class=btnchoice onclick="chsbtn(12)">蓝</span>
<span id=btn013 class=btnchoice onclick="chsbtn(13)">绿</span>
<span id=btn014 class=btnchoice onclick="chsbtn(14)">单</span>
<span id=btn015 class=btnchoice onclick="chsbtn(15)">双</span>
<span id=btn016 class=btnchoice onclick="chsbtn(16)">大</span>
<span id=btn017 class=btnchoice onclick="chsbtn(17)">小</span>
<span id=btn018 class=btnchoice onclick="chsbtn(18)">合单</span>
<span id=btn019 class=btnchoice onclick="chsbtn(19)">合双</span>
<span id=btn022 class=btnchoice onclick="chsbtn(22)">家禽</span>
<span id=btn023 class=btnchoice onclick="chsbtn(23)">野兽</span></td>
<td width="43%">&#12288;&#12288;增量 
<span id=btn120 class=btnchoice onclick="chsbtn(120)">20</span>
<span id=btn115 class=btnchoice onclick="chsbtn(115)">15</span>
<span id=btn110 class=btnchoice onclick="chsbtn(110)">10</span>
<span id=btn105 class=btnchoice onclick="chsbtn(105)">5</span>
<span id=btn101 class=btnchoice onclick="chsbtn(101)">1</span>
&#12288; 
<input type=button onclick="btnratediff(-1)" value=- class=btnmin>&#12288;
<input type=button onclick="btnratediff(1)" value=+ class=btnplus></td>
</tr>
<br><br>
  <tr bgcolor="#FFFFFF"><td>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr valign="top" width="100%">
        <td width="100" bgcolor="#FFFFFF">{list0}</td>
	    <td width="100" bgcolor="#FFFFFF">{list1}</td>
	    <td width="100" bgcolor="#FFFFFF">{list2}</td>
	    <td width="100" bgcolor="#FFFFFF">{list3}</td>
	    <td width="100" bgcolor="#FFFFFF">{list4}</td>
	    <td width="100" bgcolor="#FFFFFF">{list5}</td>
	    <td width="100" bgcolor="#FFFFFF">{list6}</td>
	    <td width="100" bgcolor="#FFFFFF">{list7}</td>
	    <td width="100" bgcolor="#FFFFFF">{list8}</td>
    </tr>
  </table>
  </td></tr>
</table>
{totall}

<p>
<input type=button value="重新整理" onclick='location.reload()'>&#12288;
<input type=button value="回上一页" onclick='goto_now5()'>
</p>


<script>
var _id = {lotto_id};
if (window.XMLHttpRequest)
{// code for all new browsers
    var XH1 = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
  var XH1 = new ActiveXObject("Microsoft.XMLHTTP");
} else 
  alert("Your browser does not support XMLHTTP.");
var now = new Date(1000 * {phptime});
var btn0_choice = 11;
var btn1_choice = 0.1;
var timer_id;

chsbtn({btn0});
chsbtn({btn1});
nowdate();
function nowdate()
{
    document.all.hktime.innerHTML = "香港时间：<b>"+now.getDate()+"日"+d2(now.getHours())+":"+d2(now.getMinutes())+":"+d2(now.getSeconds()+"</b>");
    now.setTime(now.getTime() + 1000);
    setTimeout("nowdate()",1000);
}

var timestap = {timestap};
function countdown()
{
    if (timestap >= 0) {
        timediff = timestap;
        days = Math.floor(timediff / (60 * 60 * 24)); 
    	timediff -= days * (60 * 60 * 24);
    	hours = Math.floor(timediff / (60 * 60));
    	timediff -= hours * (60 * 60);	
    	mins = Math.floor(timediff / (60));
    	timediff -= mins * (60);	
    	secs = Math.floor(timediff);
        
        str = "距离截止下注时间还有 ";
        if (days > 0 ) str += "<b>" + days + "</b> 天 ";
        if (hours > 0) str += "<b>" + hours + "</b> 小时 ";
        if (mins > 0) str += "<b>" + mins + "</b> 分钟 ";
        str += "<b>" + secs + "</b> 秒 ";
        countdownstr.innerHTML =  str;
        setTimeout("countdown()",1000)
        timestap-=1;
        if (timestap==0) {
            location.reload();
        }
    } else {
        countdownstr.innerHTML =  "<font color=red><b>已经截止下注！</b></font>";
    }
}
countdown();

function ratediff(btype, num, rate)
{
    XH1.open("POST", "op.php?op=admin&fp=ratediff&id="+_id+"&bettype="+btype+"&number="+num+"&rate="+rate+"&pagename=0&method=0",false);
    try{XH1.send("");}catch(E){}
    setTimeout("location.href='op.php?op=admin&fp=now5_8&lotto_id=_id&split={split_id}&disk={disk_id}'",10);
}

function goto_now5(){
    setTimeout("location.href='op.php?op=admin&fp=now5'",0);
}
function chsbtn(t)
{
	if (t < 100) {
		document.all.btn011.className = "btnchoice";
		document.all.btn012.className = "btnchoice";
		document.all.btn013.className = "btnchoice";
		document.all.btn014.className = "btnchoice";
		document.all.btn015.className = "btnchoice";
		document.all.btn016.className = "btnchoice";
		document.all.btn017.className = "btnchoice";
		document.all.btn018.className = "btnchoice";
		document.all.btn019.className = "btnchoice";
		document.all.btn022.className = "btnchoice";
		document.all.btn023.className = "btnchoice";
		//event.srcElement.className = "btnchoiced";
		document.getElementById("btn0"+t).className = "btnchoiced";  
		btn0_choice = t;
	} else {
		document.all.btn101.className = "btnchoice";
		document.all.btn105.className = "btnchoice";
		document.all.btn110.className = "btnchoice";
		document.all.btn115.className = "btnchoice";
		document.all.btn120.className = "btnchoice";
		//event.srcElement.className = "btnchoiced";
    document.getElementById("btn"+t).className = "btnchoiced";		
		btn1_choice = t;
	}
}

function btnratediff(t)
{
	// window.status = "Cange Rate....";
	if (timer_id) clearTimeout(timer_id);
	//bettype=E 指定在 ratediff.php 为三全中的玩法
	var uu = "op.php?op=admin&fp=ratediff&id="+_id+"&bettype=E&number="+btn0_choice+"&rate="+((btn1_choice-100)*t)+"&pagename=0&method=1";
	XH1.open("POST", uu, false); 
  try{XH1.send("");}catch(E){}
  setTimeout("location.href='op.php?op=admin&fp=now5_8&lotto_id=_id&split={split_id}&disk={disk_id}&btn0="+btn0_choice+"&btn1="+btn1_choice+"'",10);
}
</script>